﻿using banyuetan_2_0.IServices;
using banyuetan_2_0.Model.Models;
using banyuetan_2_0.Repository;
using banyuetan_2_0.Services.BASE;
using SqlSugar;

namespace banyuetan_2_0.Services
{
    public class ArticleService:BaseServices<Article>,IArticleService
    {
        private readonly IArticleRepository _articleRepository;
        //private readonly ICategoryAndArticleRepository _categoryAndArticleRepository;
        
        public ArticleService(IArticleRepository articleRepository)
        {
            _articleRepository = articleRepository;
            base.BaseDal = articleRepository;
            
            //_categoryAndArticleRepository = categoryAndArticleRepository;
        }

       public ISqlSugarClient Db()
        {
            return _articleRepository.Db;
        }
    }
}
